package com.haifeng.jupiter.auth.param;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;

/**
 * <p>
 * 获取Token参数
 * </p>
 *
 * @Author: Haifeng
 * @date: 2020-08-17
 */
@Data
public class RefreshTokenParam implements Serializable {

    @NotBlank(message = "授权方式必填")
    @ApiModelProperty(value = "授权方式", required = true)
    private String grantType;

    @NotBlank(message = "刷新Token必填")
    @ApiModelProperty(value = "刷新Token", required = true)
    private String refreshToken;

    @ApiModelProperty(value = "作用域")
    private String scope;

    @NotBlank(message = "客户端id必填")
    @ApiModelProperty(value = "客户端id", required = true)
    private String clientId;

    @NotBlank(message = "客户端密码必填")
    @ApiModelProperty(value = "客户端密码", required = true)
    private String clientSecret;
}
